package com.itheima.stock.mapper;

import com.itheima.stock.pojo.SysPermission;
import com.itheima.stock.vo.req.PerReq;
import com.itheima.stock.vo.resp.PerEveName;

import java.util.List;

/**
 * @author 15595
 * @description 针对表【sys_permission(权限表（菜单）)】的数据库操作Mapper
 * @createDate 2022-02-12 19:49:11
 * @Entity com.itheima.stock.pojo.SysPermission
 */
public interface SysPermissionMapper {

    //权限回显
    List<PerEveName> findPerEveName();

    //权限结果查询
    List<SysPermission> findAll();

    //权限结果添加
    int addPer(PerReq perReq);

    //权限更新
    int updatePer(PerReq perReq);

    //删除权限
    int upDeletePer(String id);


    int deleteByPrimaryKey(String id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

}
